package com.hl.shifangzhiyu.service.Impl;

import com.hl.shifangzhiyu.mapper.RespondMapper;
import com.hl.shifangzhiyu.pojo.Respond;
import com.hl.shifangzhiyu.service.RespondService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RespondServiceImpl implements RespondService {
    @Autowired
    RespondMapper respondMapper;
    public void add(Respond respond) {
        respondMapper.insert(respond);
    }
    public List<Respond> listAll() {
        return respondMapper.selectList(null);
    }
}
